import QtQuick 2.0

Item {
    property alias txt: label.text
    property alias widthBox: inputBox.width
    id: inputBox
    width: 600
    height: 200
    Text {
        id: label
        width: inputBox.width * 0.3
        anchors.right: box.left
        color: "white"
        font {
            family: "Microsoft YaHei"
            pixelSize: 20
        }
        horizontalAlignment: Text.AlignRight
        text: "Label："
    }
    Rectangle {
        id: box
        width: inputBox.width * 0.7
        anchors.top: inputBox.top
        anchors.bottom: inputBox.bottom
        border {
            color: "white";
            width: 2;
        }
        TextEdit {
            id: input
            anchors.fill: parent
            anchors.margins: 5
            wrapMode: TextEdit.WrapAnywhere
            font.pixelSize: 20
            focus: true
        }
    }
}
